<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the NotesDatabaseService class from the data library, for the Dart programming language.">
  <title>NotesDatabaseService class - data library - Dart API</title>

  
  <link rel="preconnect" href="https://fonts.gstatic.com">
  <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link rel="stylesheet" href="../static-assets/github.css">
  <link rel="stylesheet" href="../static-assets/styles.css">
  <link rel="icon" href="../static-assets/favicon.png">

</head>

<body data-base-href="../"
      data-using-base-href="false">

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="../index.html">trpp</a></li>
    <li><a href="../data_data/data_data-library.html">data</a></li>
    <li class="self-crumb">NotesDatabaseService class</li>
  </ol>
  <div class="self-name">NotesDatabaseService</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
    <header id="header-search-sidebar" class="hidden-l">
      <form class="search-sidebar" role="search">
        <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
      </form>
    </header>
    
    <ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
      <li><a href="../index.html">trpp</a></li>
      <li><a href="../data_data/data_data-library.html">data</a></li>
      <li class="self-crumb">NotesDatabaseService class</li>
    </ol>
    
    <h5>data library</h5>
    <ol>
  <li class="section-title"><a href="../data_data/data_data-library.html#classes">Classes</a></li>
  <li><a href="../data_data/NotesDatabaseService-class.html">NotesDatabaseService</a></li>
  <li><a href="../data_data/NotesModel-class.html">NotesModel</a></li>
  <li><a href="../data_data/NotificationModel-class.html">NotificationModel</a></li>








</ol>

  </div>

  <div id="dartdoc-main-content" class="main-content">
      <div><h1><span class="kind-class">NotesDatabaseService</span> class  </h1></div>

    <section class="desc markdown">
      <p>Stores and loads data form .SQLITE db</p>
    </section>
    


    <section class="summary offset-anchor" id="instance-properties">
      <h2>Properties</h2>

      <dl class="properties">
        <dt id="database" class="property">
          <span class="name"><a href="../data_data/NotesDatabaseService/database.html">database</a></span>
          <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-async/Future-class.html">Future</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="https://pub.dev/documentation/sqflite_common/1.0.3+3/sqlite_api/Database-class.html">Database</a></span>&gt;</span></span>         
        </dt>
        <dd>
          Returns database 
                  <div class="features">read-only</div>
</dd>
        <dt id="hashCode" class="property inherited">
          <span class="name"><a href="https://api.flutter.dev/flutter/dart-core/Object/hashCode.html">hashCode</a></span>
          <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a></span>         
        </dt>
        <dd class="inherited">
          The hash code for this object. <a href="https://api.flutter.dev/flutter/dart-core/Object/hashCode.html">[...]</a>
                  <div class="features">read-only, inherited</div>
</dd>
        <dt id="path" class="property">
          <span class="name"><a href="../data_data/NotesDatabaseService/path.html">path</a></span>
          <span class="signature">&#8596; <a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span>         
        </dt>
        <dd>
           
                  <div class="features">read / write</div>
</dd>
        <dt id="runtimeType" class="property inherited">
          <span class="name"><a href="https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html">runtimeType</a></span>
          <span class="signature">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/Type-class.html">Type</a></span>         
        </dt>
        <dd class="inherited">
          A representation of the runtime type of the object. 
                  <div class="features">read-only, inherited</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="instance-methods">
      <h2>Methods</h2>
      <dl class="callables">
        <dt id="addNoteInDB" class="callable">
          <span class="name"><a href="../data_data/NotesDatabaseService/addNoteInDB.html">addNoteInDB</a></span><span class="signature">(<wbr><span class="parameter" id="addNoteInDB-param-newNote"><span class="type-annotation"><a href="../data_data/NotesModel-class.html">NotesModel</a></span> <span class="parameter-name">newNote</span></span>)
            <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-async/Future-class.html">Future</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="../data_data/NotesModel-class.html">NotesModel</a></span>&gt;</span></span>
          </span>
                  </dt>
        <dd>
          Adds note in database 
                  
</dd>
        <dt id="addNotificationInDB" class="callable">
          <span class="name"><a href="../data_data/NotesDatabaseService/addNotificationInDB.html">addNotificationInDB</a></span><span class="signature">(<wbr><span class="parameter" id="addNotificationInDB-param-newNote"><span class="type-annotation"><a href="../data_data/NotificationModel-class.html">NotificationModel</a></span> <span class="parameter-name">newNote</span></span>)
            <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-async/Future-class.html">Future</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="../data_data/NotificationModel-class.html">NotificationModel</a></span>&gt;</span></span>
          </span>
                  </dt>
        <dd>
          Adds notification in database 
                  
</dd>
        <dt id="deleteNoteInDB" class="callable">
          <span class="name"><a href="../data_data/NotesDatabaseService/deleteNoteInDB.html">deleteNoteInDB</a></span><span class="signature">(<wbr><span class="parameter" id="deleteNoteInDB-param-noteToDelete"><span class="type-annotation"><a href="../data_data/NotesModel-class.html">NotesModel</a></span> <span class="parameter-name">noteToDelete</span></span>)
            <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-async/Future-class.html">Future</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span>&gt;</span></span>
          </span>
                  </dt>
        <dd>
          Deletes note from database 
                  
</dd>
        <dt id="deleteNotificationInDB" class="callable">
          <span class="name"><a href="../data_data/NotesDatabaseService/deleteNotificationInDB.html">deleteNotificationInDB</a></span><span class="signature">(<wbr><span class="parameter" id="deleteNotificationInDB-param-noteToDelete"><span class="type-annotation"><a href="../data_data/NotificationModel-class.html">NotificationModel</a></span> <span class="parameter-name">noteToDelete</span></span>)
            <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-async/Future-class.html">Future</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span>&gt;</span></span>
          </span>
                  </dt>
        <dd>
          Deletes notification from database 
                  
</dd>
        <dt id="getNotesFromDB" class="callable">
          <span class="name"><a href="../data_data/NotesDatabaseService/getNotesFromDB.html">getNotesFromDB</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-async/Future-class.html">Future</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="https://api.flutter.dev/flutter/dart-core/List-class.html">List</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="../data_data/NotesModel-class.html">NotesModel</a></span>&gt;</span></span>&gt;</span></span>
          </span>
                  </dt>
        <dd>
          Gets notes from DB 
                  
</dd>
        <dt id="getNotificationForNote" class="callable">
          <span class="name"><a href="../data_data/NotesDatabaseService/getNotificationForNote.html">getNotificationForNote</a></span><span class="signature">(<wbr><span class="parameter" id="getNotificationForNote-param-id"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/int-class.html">int</a></span> <span class="parameter-name">id</span></span>)
            <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-async/Future-class.html">Future</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="https://api.flutter.dev/flutter/dart-core/List-class.html">List</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="../data_data/NotificationModel-class.html">NotificationModel</a></span>&gt;</span></span>&gt;</span></span>
          </span>
                  </dt>
        <dd>
          Gets notifications from specific note 
                  
</dd>
        <dt id="getNotificationsFromDB" class="callable">
          <span class="name"><a href="../data_data/NotesDatabaseService/getNotificationsFromDB.html">getNotificationsFromDB</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-async/Future-class.html">Future</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="https://api.flutter.dev/flutter/dart-core/List-class.html">List</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="../data_data/NotificationModel-class.html">NotificationModel</a></span>&gt;</span></span>&gt;</span></span>
          </span>
                  </dt>
        <dd>
          Gets notifications from DB 
                  
</dd>
        <dt id="init" class="callable">
          <span class="name"><a href="../data_data/NotesDatabaseService/init.html">init</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; Future</span>
          </span>
                  </dt>
        <dd>
          Initializes database 
                  
</dd>
        <dt id="noSuchMethod" class="callable inherited">
          <span class="name"><a href="https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html">noSuchMethod</a></span><span class="signature">(<wbr><span class="parameter" id="noSuchMethod-param-invocation"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/Invocation-class.html">Invocation</a></span> <span class="parameter-name">invocation</span></span>)
            <span class="returntype parameter">&#8594; dynamic</span>
          </span>
                  </dt>
        <dd class="inherited">
          Invoked when a non-existent method or property is accessed. <a href="https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html">[...]</a>
                  <div class="features">inherited</div>
</dd>
        <dt id="toString" class="callable inherited">
          <span class="name"><a href="https://api.flutter.dev/flutter/dart-core/Object/toString.html">toString</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/String-class.html">String</a></span>
          </span>
                  </dt>
        <dd class="inherited">
          Returns a string representation of this object. 
                  <div class="features">inherited</div>
</dd>
        <dt id="updateNoteInDB" class="callable">
          <span class="name"><a href="../data_data/NotesDatabaseService/updateNoteInDB.html">updateNoteInDB</a></span><span class="signature">(<wbr><span class="parameter" id="updateNoteInDB-param-updatedNote"><span class="type-annotation"><a href="../data_data/NotesModel-class.html">NotesModel</a></span> <span class="parameter-name">updatedNote</span></span>)
            <span class="returntype parameter">&#8594; Future</span>
          </span>
                  </dt>
        <dd>
          Updates note in database 
                  
</dd>
        <dt id="updateNotificationInDB" class="callable">
          <span class="name"><a href="../data_data/NotesDatabaseService/updateNotificationInDB.html">updateNotificationInDB</a></span><span class="signature">(<wbr><span class="parameter" id="updateNotificationInDB-param-updatedNotification"><span class="type-annotation"><a href="../data_data/NotificationModel-class.html">NotificationModel</a></span> <span class="parameter-name">updatedNotification</span></span>)
            <span class="returntype parameter">&#8594; Future</span>
          </span>
                  </dt>
        <dd>
          Updates notification in database 
                  
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor inherited" id="operators">
      <h2>Operators</h2>
      <dl class="callables">
        <dt id="operator ==" class="callable inherited">
          <span class="name"><a href="https://api.flutter.dev/flutter/dart-core/Object/operator_equals.html">operator ==</a></span><span class="signature">(<wbr><span class="parameter" id="==-param-other"><span class="type-annotation"><a href="https://api.flutter.dev/flutter/dart-core/Object-class.html">Object</a></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="https://api.flutter.dev/flutter/dart-core/bool-class.html">bool</a></span>
          </span>
                  </dt>
        <dd class="inherited">
          The equality operator. <a href="https://api.flutter.dev/flutter/dart-core/Object/operator_equals.html">[...]</a>
                  <div class="features">inherited</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="static-properties">
      <h2>Static Properties</h2>

      <dl class="properties">
        <dt id="db" class="property">
          <span class="name"><a href="../data_data/NotesDatabaseService/db.html">db</a></span>
          <span class="signature">&#8594; <a href="../data_data/NotesDatabaseService-class.html">NotesDatabaseService</a></span>         
        </dt>
        <dd>
           
                  <div class="features">final</div>
</dd>
      </dl>
    </section>



  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
    <ol>



    <li class="section-title">
      <a href="../data_data/NotesDatabaseService-class.html#instance-properties">Properties</a>
    </li>
    <li><a href="../data_data/NotesDatabaseService/database.html">database</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/hashCode.html">hashCode</a></li>
    <li><a href="../data_data/NotesDatabaseService/path.html">path</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/runtimeType.html">runtimeType</a></li>

    <li class="section-title"><a href="../data_data/NotesDatabaseService-class.html#instance-methods">Methods</a></li>
    <li><a href="../data_data/NotesDatabaseService/addNoteInDB.html">addNoteInDB</a></li>
    <li><a href="../data_data/NotesDatabaseService/addNotificationInDB.html">addNotificationInDB</a></li>
    <li><a href="../data_data/NotesDatabaseService/deleteNoteInDB.html">deleteNoteInDB</a></li>
    <li><a href="../data_data/NotesDatabaseService/deleteNotificationInDB.html">deleteNotificationInDB</a></li>
    <li><a href="../data_data/NotesDatabaseService/getNotesFromDB.html">getNotesFromDB</a></li>
    <li><a href="../data_data/NotesDatabaseService/getNotificationForNote.html">getNotificationForNote</a></li>
    <li><a href="../data_data/NotesDatabaseService/getNotificationsFromDB.html">getNotificationsFromDB</a></li>
    <li><a href="../data_data/NotesDatabaseService/init.html">init</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/toString.html">toString</a></li>
    <li><a href="../data_data/NotesDatabaseService/updateNoteInDB.html">updateNoteInDB</a></li>
    <li><a href="../data_data/NotesDatabaseService/updateNotificationInDB.html">updateNotificationInDB</a></li>

    <li class="section-title inherited"><a href="../data_data/NotesDatabaseService-class.html#operators">Operators</a></li>
    <li class="inherited"><a href="https://api.flutter.dev/flutter/dart-core/Object/operator_equals.html">operator ==</a></li>


    <li class="section-title"><a href="../data_data/NotesDatabaseService-class.html#static-properties">Static properties</a></li>
    <li><a href="../data_data/NotesDatabaseService/db.html">db</a></li>


</ol>

  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    trpp
      2.0.0+2
  </span>

</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="../static-assets/typeahead.bundle.min.js"></script>
<script src="../static-assets/highlight.pack.js"></script>
<script src="../static-assets/script.js"></script>


</body>

</html>
